@import "./../style.scss";
@import 'taro-ui/dist/style/components/button.scss'; // 按需引入
@import 'taro-ui/dist/style/components/tabs.scss';
@import 'taro-ui/dist/style/components/flex.scss';

@include fontSize {
  &.tag-detail {

    .tag-detail-domain,
    .title {
      font-size: themed('big');
    }

    .card-info,
    .score {
      font-size: themed('small');
    }

    .card-content {
      font-size: themed('normal');
    }

    .user-card-bottom-right {
      font-size: themed('small');
    }

    .user-card-name {
      font-size: themed('big');
    }

    .events-card-head {
      font-size: themed('big');
    }
  }
}

@include themeify {
  &.tag-detail {
    background: themed('bgColor');
    height: 100%;

    // width: 100%;
    // position: absolute;
    .tag-detail-list {
      height: 100%;
    }

    .tag-view-detail {
      margin: 26px 2%;

      .tag-detail-domain {
        line-height: 28px;
        color: themed('titleColor');
        margin-bottom: 10px;
      }

      .tag-detail-content {
        border-radius: themed('cardRadius');
        padding: 16px;
        background: themed('whiteColor');
        box-shadow: 0px 4px 12px 2px themed('shadowColor');

        .content {
          display: flex;
          flex-direction: row;

          .image {
            display: flex;
            align-items: center;
            margin: 10px;

            image {
              text-align: center;
              width: 150px;
              height: 150px;
            }

          }

          >view {
            .title {
              color: themed('titleColor');
            }
          }
        }

        .foot {
          color: themed('titleColor');
          display: flex;
          justify-content: flex-end;
          font-size: 24rpx;

          >view {
            margin-right: 16px;
          }
        }

      }
    }

    .card {

      border-radius: themed('cardRadius');
      margin: 26px 2%;
      padding: 16px;
      background: themed('whiteColor');
      box-shadow: 0px 4px 12px 2px themed('shadowColor');

      &.tags {
        background: transparent;
        box-shadow: none;
        margin-top: 0;
        padding-top: 116px;
        margin: 0 2%;
      }

      .card-head {

        .title {
          color: themed('titleColor');
          white-space: pre-wrap;
          text-align: start;
        }

        .score {
          text-align: end;
          color: transparent;

          &.s50 {
            color: #8fb2c9;
          }

          &.s60 {
            color: #495c69;
          }

          &.s70 {
            color: #83cbac;
          }

          &.s80 {
            color: #5698c3;
          }

          &.s90 {
            color: #983680;
          }

          &.s100 {
            color: #ffa60f;
          }
        }
      }

      .card-content {
        color: themed('grayFontColor');
        margin-bottom: 8px;
        text-align: start;
      }

      .card-foot {
        .at-tag {
          background: themed('bgColor');
          box-shadow: initial;
        }

        .card-info {
          color: themed('grayFontColor');

          text,
taro-text-core {
            margin: 0 10px;
          }
        }
      }



    }

    .user-list {
      width: 100%;
      display: inline-block;
    }

    .card-user {
      padding: 13px 0;
      border-radius: themed('cardRadius');

      &:first-child {
        margin-top: 116px;
      }

      .user-card-body {
        border-radius: themed('cardRadius');
        height: 400px;
        position: relative;
        width: 96%;
        left: 2%;
        box-shadow: 0px 4px 12px 2px themed('shadowColor');

        &.noBG {
          height: 300px;
        }

        .user-card-bg {
          position: absolute;
          width: 100%;
          height: 100%;
          border-radius: themed('cardRadius');
        }

        .user-card-bottom {
          position: absolute;
          height: 50%;
          width: 100%;
          bottom: 0;
          background-color: rgba(0, 0, 0, 0.12);
          border-radius: 0 0 20px 20px;
          display: flex;
          flex-direction: row;
          color: white;

          .user-card-bottom-left {
            width: 37%;
            text-align: end;

            .user-card-avatar {
              width: 200px;
              height: 200px;
              position: absolute;
              border-radius: 100%;
              bottom: 50%;
              left: 6%;
              background-color: white;
            }
          }

          .user-card-bottom-right {
            display: flex;
            flex-direction: column;
            text-align: start;
            padding: 10px 0;
            flex: 1;

            .user-card-base {
              display: flex;
              flex-direction: column;
              text-align: start;
              flex: 1;

              // .user-card-name {
              //   font-size: 28px;
              // }
            }

            .user-card-info {
              display: flex;
              flex-direction: row;

              text,
taro-text-core {
                margin-right: 8px;
              }
            }
          }


          &.white {
            color: themed('titleColor');
            background-color: themed('whiteColor');
            border-radius: themed('cardRadius');
          }

        }

      }
    }

  }
}
